<!--河南星辰软件科技有限公司
@copyright Copyright (c) 2010~2022 All rights reserved.
-->
<template>
  <div class='app-container'>
    <el-row>
      <el-col :span='22' :xs='24'>
        <el-form ref="form" :model="s_top" :rules="rules" label-width="100px" id="mvcfm"> 退货单号 {{empty}} 退货时间 {{empty}} 操作人 {{empty}}
          <div>
          </div>
          <el-button @click="gotoPage('/crm/sale/ServiceManage?'+vueparams+'')" type='primary' size="mini"><i class='fa fa-reply'></i>返回</el-button>
          <div class="form-unit">
            <span class="mvc-title-left"> 入库商品添加 </span>
          </div>
          <el-table :data="s_top">
            <el-table-column label="操作" align="center" width='100' type=''>
              <template slot-scope="scope">
                <el-dropdown trigger="click">
                  <span class="el-dropdown-link">操作<i class="el-icon-arrow-down el-icon--right"></i></span>
                  <el-dropdown-menu slot="dropdown">
                  </el-dropdown-menu>
                </el-dropdown>
              </template>
            </el-table-column>
            <el-table-column label="供应商" prop="client_id" width="180">
              <template slot-scope="scope">
                {{scope.row.client_id}}
              </template>
            </el-table-column>
            <el-table-column label="退货产品" prop="phone_area" width="180">
              <template slot-scope="scope">
                {{scope.row.phone_area}}
              </template>
            </el-table-column>
            <el-table-column label="规格型号" prop="">
            </el-table-column>
            <el-table-column label="退货数量" prop="">
            </el-table-column>
            <el-table-column label="退货原因" prop="">
            </el-table-column>
            <el-table-column label="业务员" prop="">
            </el-table-column>
            <el-table-column label="添加时间" prop="">
            </el-table-column>
            <el-table-column label="操作" prop="">
              <template slot-scope="scope">
                <el-link @click="popReturnEa('')" type='primary'>{{scope.row['']}}</el-link>
              </template>
            </el-table-column>
          </el-table>
        </el-form>
      </el-col>
      <el-col :span='2' :xs='24'>
        <el-menu default-active='active' class='menu-unit'>
          <el-menu-item v-for='item in Container'>
            <el-link @click="gotoMenu(item.url)" :type="'售后管理'===item.name?'primary':'default'">{{item.page_desc||item.name}}</el-link>
          </el-menu-item>
        </el-menu>
      </el-col>
    </el-row>
    <el-dialog :visible.sync="ReturnEaVisible" append-to-body>
      <ReturnEa v-if="ReturnEaVisible" ref="ReturnEa" :popparams="popparams"> </ReturnEa>
    </el-dialog>
  </div>
</template>
<script>
  import request from '@/utils/request'
  import ReturnEa from "@/views/crm/sale/ReturnEa";
  export default {
    name: 'ReturnProEa',
    components: {
      ReturnEa,
    },
    props: ['popparams'],
    data() {
      return {
        ReturnEaVisible: false,
        ReturnEaValue: null,
        ReturnEaDesc: null,
        vueparams: this.getVUEParams(""),
        s_top: [],
        loading: false,
        Container: null,
        rules: {}
      }
    },
    created() {
      this.loadContainerMenu({
        pid: "80299289AF2443B18EA545A4C0C37170",
        name: "客户管理右菜单",
        selected: "售后管理"
      }, 'Container', this.vueparams);
    },
    updated() {},
    mounted() {},
    methods: {
      popReturnEa(params) {
        if (params != "") this.popparams = params + this.vueparams;
        this.ReturnEaVisible = !this.ReturnEaVisible;
      },
    },
  }
</script>
